package CSC8002;

import java.util.*;

public class Branch {

	private ArrayList<Car> cars;
	private HashMap<DrivingLicence, RegistrationNumber> rents;
	
	public Branch(){
		cars = new ArrayList<Car>();
		rents = new HashMap<DrivingLicence, RegistrationNumber>();	
	}
	
	public void addCar(Car car){
		cars.add(car);
	}
	
	public void removeCar(Car car){
		cars.remove(car);
	}
	
	public void addRent(DrivingLicence dl, RegistrationNumber rn){
		rents.put(dl, rn);
	}
	
	public void removeRent(DrivingLicence dl){
		rents.remove(dl);
	}
	
	
}
